var express = require('express');
var app = express();

var main = require('./routes/main');
var sys = require('./routes/sys');
var base = require('./routes/base');
var unified = require('./routes/unified');

app.set('view engine','ejs');
app.use(express.static('public'));
app.use(express.static('page'));
app.use(express.static(__dirname+'/views'));

app.use('/', main);
app.use('/sys', sys);
app.use('/base', base);
app.use('/unified', unified);

app.listen(8765);